package com.treasure.mall.biz.mapstruct;

import com.treasure.mall.biz.entity.user.UserPO;
import com.treasure.mall.biz.vo.user.UserVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.mapstruct
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/6/11 12:11
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * Copyright 2019-2022 com.treasure.mall.biz.mapstruct Inc. All rights reserved.
 */
@Mapper
public interface UserMapStruct {

    UserMapStruct INSTANCE = Mappers.getMapper(UserMapStruct.class);

    /**
     * userPO to userVo
     *
     * @param po
     * @return
     */
    UserVO po2vo(UserPO po);

    /**
     * pos to vos
     *
     * @param pos
     * @return
     */
    List<UserVO> pos2vos(List<UserPO> pos);
}
